<template>
  <h1>计数器8:{{this.$store.state.helloWorld8.count1}}</h1>
  <button @click="increment">增加</button>
</template>
<script>
export default {
  methods:{
    increment(){
      this.$store.commit({
        type:'helloWorld8/incrementOne',
        count: 5
      })
    }
  }
}
</script>